﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zmx
{
    class Animal
    {
        private int Leg;
       public int leg
        {
            get { return this.Leg; }
            set { this.Leg = value; }

        }
        public void walk()
        { Console.WriteLine("我会走路"); }
        public void eat()
        { Console.WriteLine("我会吃"); }
        public virtual void sleep()
        { Console.WriteLine("我会睡"); }
        public virtual void cry()
        { Console.WriteLine("我会叫"); }

    }
}
